//
//  VenicleListCell.m
//  StarOrangeStaff
//
//  Created by lshenrong on 2020/6/28.
//  Copyright © 2020 lshenrong. All rights reserved.
//

#import "LongerRentalListCell.h"


@interface LongerRentalListCell ()

@property (nonatomic,strong) UILabel *brandLbl;
@property (nonatomic,strong) UILabel *carNumberLbl;
@property (nonatomic,strong) UILabel *tenantLbl;

@end

@implementation LongerRentalListCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self!=nil){
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self.contentView addSubview:self.brandLbl];
        [self.contentView addSubview:self.carNumberLbl];
        [self.contentView addSubview:self.tenantLbl];
        
        [self.brandLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.contentView).mas_offset(kMarginOffsetX);
            make.centerY.mas_equalTo(self.contentView.mas_centerY);
        }];
        
        [self.tenantLbl  mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.mas_equalTo(self.contentView).mas_offset(-kMarginOffsetX);
            make.centerY.mas_equalTo(self.contentView.mas_centerY);
        }];
        
        [self.carNumberLbl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerX.mas_equalTo(self.contentView.mas_centerX);
            make.centerY.mas_equalTo(self.contentView.mas_centerY);
        }];

        
        
    }
    return self;
}

+ (CGFloat)heightForCell{
    return 60.0 ;
}

MACRO_UILabel_LazyloadWithPFCGFont(brandLbl, @"品牌", kBlackColor, 15)
MACRO_UILabel_LazyloadWithPFCGFont(carNumberLbl, @"车牌号", kOrangeColor, 15)
MACRO_UILabel_LazyloadWithPFCGFont(tenantLbl, @"承租方", kBlackColor, 15)


@end
